package com.jihu.design.behavioral.observer;

/**
 * @author jihu
 * @date 2021/9/29
 */
public class MainTest {

    public static void main(String[] args) {
        MMTikToker mm = new MMTikToker();

        RobotFans robot1 = new RobotFans();
        RobotFans robot2 = new RobotFans();
        RobotFans robot3 = new RobotFans();
        robot1.follow(mm);
        robot2.follow(mm);
        robot3.follow(mm);

        HumanFans humanFans = new HumanFans();
        humanFans.follow(mm);

        mm.startSell();


        System.out.println("=========>");

        mm.endSell();
    }
}
